//
//  HttpReceiveHandler.m
//  MyFamework
//
//  Created by carlos on 12-10-3.
//  Copyright (c) 2012年 carlos. All rights reserved.
//

#import "HttpReceiveHandler.h"
#import "BaseParser.h"
@interface HttpReceiveHandler()

@end

@implementation HttpReceiveHandler
+(void)operateReturnThreadMessage:(ThreadMessage *)threadMessage withContent:(NSString *)content{
    [self operateBase:threadMessage withContent:content];

    switch (threadMessage.interfaceDefine) {
        case kETest1:
            [self operateTest1:threadMessage withContent:content];
            break;
        case kETest2:
            [self operateTest2:threadMessage withContent:content];
            break;
            
        default:
            break;
    }
}
//基本的
+(void)operateBase:(ThreadMessage *)threadMessage withContent:(NSString *)content{
    [BaseParser success:content withThreadMsg:threadMessage];
}
//测试1
+(void)operateTest1:(ThreadMessage *)threadMessage withContent:(NSString *)content{
    threadMessage.stringValue = content;
}
//测试2
+(void)operateTest2:(ThreadMessage *)threadMessage withContent:(NSString *)content{
    threadMessage.stringValue = content;
}
@end
